#include  <stdio.h>
#include <iostream>

using namespace std;

void reSet(int *t);
int main()
{
	int *A = new int(1);
	*A = 5;
	reSet(A);
	cout<<*A<<endl;
	delete A;
	system("pause");
	return 0;
}

void reSet(int *t)
{
	*t=1000;
}
